package com.carSys.Service;

import com.carSys.DTO.OAACountsByRepairmanDTO;
import com.carSys.DTO.OAACountsByTaskTypeDTO;
import com.carSys.DTO.OAACountsByVehicleDTO;
import com.carSys.Mapper.OAACountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OAACountService {

    @Autowired
    private OAACountMapper oaaCountMapper;

    public List<OAACountsByTaskTypeDTO> getUnCompletedOAACountsSortedByTaskType(){
        return oaaCountMapper.getUnCompletedOAACountsSortedByTaskType();
    }

    public List<OAACountsByRepairmanDTO> getUnCompletedOAACountsSortedByRepairPerson(){
        return oaaCountMapper.getUnCompletedAssignmentsSortedByRepairPerson();
    }

    public List<OAACountsByVehicleDTO> getUnCompletedOAACountsSortedByVehicle() {
        return oaaCountMapper.getUnCompletedAssignmentsSortedByVehicle();
    }
}
